Calling the variables from the report’s variables list

One can call any variable, which is specified in the list of the report’s variables ("Report|Variables..." menu item), from the script. Variable’s name thus should be enclosed in angle brackets:

if <my variable> = 10 then ...

An alternative way is to use the "Get" function:

if Get('my variable') = 10 then ...

Modification of such variable’s value is available only via the "Set" procedure:

Set('my variable', 10);

One should address the system variables, such as "Page#," in exactly the same way:

if <Page#> = 1 then ...